<extend name="Base/base" />
<block name="button">
	<button class="btn btn-primary" type="submit" form="form"><i class="fa fa-save"></i> {:L('text_save')}</button>
</block>
<block name="body">
	<div class="panel panel-default">
		<div class="panel-heading">
			<h4><i class="fa fa-pencil fa-fw"></i>  {$heading_title}</h4>
		</div>
		<div class="panel-body">
			<form action="__SELF__" method="post" id="form" class="form-horizontal">				
				<ul class="nav nav-tabs">
					<li class="active">
						<a href="#home" data-toggle="tab">{:L('tab_home')}</a>
					</li>
					<li>
						<a href="#manage" data-toggle="tab">{:L('tab_manage')}</a>
					</li>
					
				</ul>
				<div class="tab-content">
					<div class="tab-pane active" id="home">
						<div class="form-group required">
							<label for="input-default-language" class="col-sm-2 control-label">{:L('entry_default_language')}</label>
							<div class="col-sm-10">
								<select name="Home[DEFAULT_LANG]" id="input-default-language" class="form-control">
									<foreach name="languages" item="language">
										<option {$language['language_id'] == $config['Home']['DEFAULT_LANG']?'selected':''} value="{$language.language_id}">{$language.name}</option>
									</foreach>
								</select>
							</div>
						</div>
						<div class="form-group required">
							<label for="input-default-theme" class="col-sm-2 control-label">{:L('entry_default_theme')}</label>
							<div class="col-sm-10">
								<select name="Home[DEFAULT_THEME]" id="input-default-theme" class="form-control">
									<foreach name="home_theme" item="item">
										<option value="{$item}" {$item==$config['Home']['DEFAULT_THEME']?'selected':''}>{$item}</option>
									</foreach>
								</select>
							</div>
						</div>
					</div>
					<div class="tab-pane" id="manage">
						<div class="form-group required">
							<label for="input-manage-default-language" class="col-sm-2 control-label">{:L('entry_default_language')}</label>
							<div class="col-sm-10">
								<select name="Manage[DEFAULT_LANG]" id="input-manage-default-language" class="form-control">
									<foreach name="languages" item="language">
										<option {$language['language_id'] == $config['Manage']['DEFAULT_LANG']?'selected':''} value="{$language.language_id}">{$language.name}</option>
									</foreach>
								</select>
							</div>
						</div>
						<div class="form-group required">
							<label for="input-manage-default-theme" class="col-sm-2 control-label">{:L('entry_default_theme')}</label>
							<div class="col-sm-10">
								<select name="Manage[DEFAULT_THEME]" id="input-manage-default-theme" class="form-control">
									<foreach name="manage_theme" item="item">
										<option value="{$item}" {$item==$config['Manage']['DEFAULT_THEME']?'selected':''}>{$item}</option>
									</foreach>
								</select>
							</div>
						</div>
						<div class="form-group required">
							<label for="input-manage-page-limit" class="col-sm-2 control-label">{:L('entry_page_limit')}</label>
							<div class="col-sm-10">
								<input type="number" class="form-control" id="input-manage-page-limit" name="Manage[CONFIG_LIMIT_MANAGE]" placeholder="{:L('entry_page_limit')}" value="{$config['Manage']['CONFIG_LIMIT_MANAGE']}">
							</div>
						</div>
					</div>
				</div>
			</form>			
		</div>		
	</div>
</block>
<block name="script">
	<script type="text/javascript">
		
	</script>
</block>
